package com.yzjs.common.base.entity;

import java.util.List;

public class PageInfo<B> {

    private Integer pageNum;

    private Integer pageSize;

    private Long totalRowCount;

    private Integer pageCount;

    private List<B> list ;


    public PageInfo(List<B> list,AbstractBasePojo basePojo) {
        this.list = list;
        this.pageNum = basePojo.getPageNum();
        this.pageSize = basePojo.getPageSize();
        this.totalRowCount = basePojo.getTotalRowCount();

    }


    public PageInfo(Integer pageNum, Integer pageSize, Long totalRowCount, List<B> list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalRowCount = totalRowCount;
        this.list = list;
    }

    public List<B> getList() {
        return list;
    }

    public void setList(List<B> list) {
        this.list = list;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Long getTotalRowCount() {
        return totalRowCount;
    }

    public void setTotalRowCount(Long totalRowCount) {
        this.totalRowCount = totalRowCount;
    }
}
